#ifndef __X_PLATFORM_MACROS_H__
#define __X_PLATFORM_MACROS_H__

#define X_SYNTHESIZE_READONLY(varType, varName, funName)\
protected: varType varName;\
public: virtual varType get##funName(void) const { return varName; }

#define X_SAFE_DELETE_ARRAY(p)      do { if(p) { delete[] (p); (p) = 0; } } while(0)

#define X_BREAK_IF(cond)           if(cond) break

#endif // __X_PLATFORM_MACROS_H__